import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import 'normalize.css'
// 引入 全局样式
// import '@/assets/styles/global.scss'
import './index.css'

import { Provider } from 'react-redux'
import { store, persistor } from '@/store/index.ts'
import { PersistGate } from 'redux-persist/integration/react'
// import { persistStore } from 'redux-persist'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'
// const persistor = persistStore(store)

ReactDOM.createRoot(document.getElementById('root')!).render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <App />
      </PersistGate>
    </Provider>
  </ConfigProvider>
)
